package com.dyit.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QueueConfig {
    @Bean
    public Queue topicQueueA(){
        return new Queue(RabbitMqConfig.TOP_QUEUE_A,true,false,false);
    }
    @Bean
    public Queue topicQueueB(){
        return new Queue(RabbitMqConfig.TOP_QUEUE_B,true,false,false);
    }
    @Bean
    public Queue directQueue(){
        return new Queue(RabbitMqConfig.DIRECT_QUEUE,true,false,false);
    }
}
